package day03;
//if结构演式
public class IFDemo {
    public static void main(String[] args) {
        double price=500.0;
        if(price>=500){
            price*=0.8;
        }
        System.out.println("最终消费金额为："+price);
        price=300.0;
        if(price>=500){
            price*=0.8;
        }
        System.out.println("最终消费金额为："+price);
        //判断成绩是否合法
        int score=55;
        if(score>=0&&score<=100){
            System.out.println("成绩合法");
        }
        score=555;
        if(score>=0&&score<=100){
            System.out.println("成绩合法");
        }else{
            System.out.println("合法个嘚嘚");
        }
        int a=5;
        if(a>=5){
            a=20;
            if(a<=5){
                System.out.println("大于");
            }
        }
        System.out.println("大于个屁");




    }
}
